

/** * @(#)Author.java, 2018年2月4日. * * Copyright 2018 Netease, Inc. All rights reserved. * NETEASE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */
 package com.zswlib.netease.webapp.po;

import java.io.Serializable;
import java.util.Set;

import org.apache.ibatis.type.Alias;

/** * * @author GZ钟绍威(zhongshaowei@corp.netease.com) 2018年2月4日 * *  */
@Alias("Author")
public class Author implements Serializable{
    private static final long serialVersionUID = 42L;
    private Integer id;
    private String username;
    private String password;
    private String email;
    private String bio;
    private Section favouriteSection;
    private Set<Blog> blogs;
    
    public Integer getId() {
        return id;
    }
    public void setId(Integer id) {
        this.id = id;
    }
    public String getUsername() {
        return username;
    }
    public void setUsername(String username) {
        this.username = username;
    }
    public String getPassword() {
        return password;
    }
    public void setPassword(String password) {
        this.password = password;
    }
    public String getEmail() {
        return email;
    }
    public void setEmail(String email) {
        this.email = email;
    }
    public String getBio() {
        return bio;
    }
    public void setBio(String bio) {
        this.bio = bio;
    }
    public Section getFavouriteSection() {
        return favouriteSection;
    }
    public void setFavouriteSection(Section favouriteSection) {
        this.favouriteSection = favouriteSection;
    }
    public Set<Blog> getBlogs() {
        return blogs;
    }
    public void setBlogs(Set<Blog> blogs) {
        this.blogs = blogs;
    }
    @Override
    public String toString() {
        return "Author [id=" + id + ", username=" + username + ", password=" + password + ", email=" + email
                + ", bio=" + bio + ", favouriteSection=" + favouriteSection + ", blogs=" + blogs + "]";
    }
    
}